<?php
/**
 * Created by Dumitru Russu
 * User: developer
 * Date: 10/26/12
 * Time: 4:28 PM
 * To change this template use File | Settings | File Templates.
 */
class Page_Fe_Products_Poems extends Page {
	function __construct() {
		self::$TPL->setBodyClass('poems');
		parent::__construct();
	}

	public function defaultAction() {
		self::$TPL->appendCssFile('wedding/poems');
		self::$TPL->appendJsFile('wedding/poems');
		$currentPage = (self::$P ? self::$P : (self::$PAGE['pp_pagination_number'] ? self::$PAGE['pp_pagination_number'] : 1));
		self::$TPL->assign('currentPage', $currentPage);

		$pagination = Db_Cms_Pages::getPaginationUrlsByPage(self::$PAGE, $currentPage);
		self::$TPL->assign('paginations', $pagination);

		$totalPagination = count($pagination);
		self::$TPL->assign('totalPaginations', $totalPagination);

		self::$TPL->assign('filePath', self::$PROJECT['pr_resources_live']);


		self::$TPL->setBodyTemplate('show_poems');
		return array(
			'type' => 'display'
		);
	}

}
